﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ThayDoiThongTin.aspx.cs" Inherits="WebHousingInfo.ThayDoiThongTin" %>
<%@ Register Src="~/Controls/Header.ascx" TagName="HD" TagPrefix="Header" %>
<%@ Register Src="~/Controls/ManagerUser_left.ascx" TagName="Userleft" TagPrefix="Left" %>
<%@ Register Src="~/Controls/ManagerUser_Right.ascx" TagName="UserRight" TagPrefix="Right" %>
<%@ Register Src="~/Controls/MenuFooter.ascx" TagName="MenuDuoi" TagPrefix="MenuFooter" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Quản lý cá nhân - chỉnh sửa thông tin</title>
</head>
 <link rel="stylesheet" type="text/css" href="css/ketquatimkiem.css" />   
<body>
    <form id="form1" runat="server">
    <div id="uni_wrapper">
        <script type="text/javascript">
        function confirmAction() {
            if(confirm('Hình Avatar trước đây sẽ bị xoá.\nBạn chắc chắn muốn thay đổi ?')) {
                return true;
            }
            else {
              
                return false;
            }
        }
        </script>
	    <div id="uni_main">
	        <Header:HD ID="Header" runat="server" />
		    <div id="content" class="clearfix">		    
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>                                    
			    <div id="group_6">
				    <Left:Userleft ID="Userleft" runat="server" />
				    <div style="margin-bottom:5px; float:right; width:542px; ">				    
				        <a href="Home.aspx">Trang chủ</a> >> <a href="#">Quản lý cá nhân</a> >> <a href="ThayDoiThongTin.aspx">Thay đổi thông tin</a>				   
				    </div>
				    <div class="title_tab_center">
					    <ul>
						    <li class="selected"><a href="DangTin.aspx">Đăng tin Nhà đất</a></li>
						    <li><a href="DangTinDoanhNghiep.aspx">Đăng Tin Doanh nghiệp</a></li>
					    </ul>
				    </div>			
				   <div id="group_542">
				    	<table cellspacing="1" cellpadding="4" border="0" align="center" width="100%" class="tborder">
				    	   <tbody>
				    	     <tr> 
				    	        <td class="tcat">Thay đổi thông tin của thành viên 
                                    <asp:Label ID="lbluser" runat="server" Text="" Font-Bold="True" ForeColor="Blue"></asp:Label>
                                </td>
				    	     </tr>
				    	     <tr>
				    	          <td align="center" class="panelsurround"> 
				    	                <div class="panel">
				    	                    <div align="left" style="width: 480px;">
				    	                         <table width="100%" style="padding:10px;">
                                                        <tr class="userchangeinfo">
                                                            <td>
                                                                <asp:Label ID="Label2" runat="server" Text="Họ tên"></asp:Label>
                                                            </td>
                                                            <td align="left">
                                                                <asp:TextBox ID="txthoten" runat="server" Height="18px" Width="200px" MaxLength="50"></asp:TextBox>
                                                                <br />
                                                            </td>
                                                            <td>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                                                    ControlToValidate="txthoten" ErrorMessage="?">*</asp:RequiredFieldValidator>
                                                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                                                    ControlToValidate="txthoten" ErrorMessage="Độ dài &gt; 3 và &lt; 50" 
                                                                    ValidationExpression="^([\S\s]{3,49})$"></asp:RegularExpressionValidator>                                                               
                                                            </td>
                                                        </tr>	                                                                                                               
                                                        <tr class="userchangeinfo">
                                                            <td>
                                                                <asp:Label ID="Label1" runat="server" Text="Ngày sinh"></asp:Label>
                                                            </td>                                                            
                                                            <td align="left">                                                            
                                                                <asp:DropDownList ID="dldate" Height="18px" Width="60px" runat="server">
                                                                </asp:DropDownList>&nbsp;-
                                                                <asp:DropDownList ID="dlmonth" Height="18px" AutoPostBack="true" Width="50px" runat="server" 
                                                                    onselectedindexchanged="dlmonth_SelectedIndexChanged">
                                                                </asp:DropDownList>&nbsp;-
                                                                <asp:DropDownList ID="dlyear" Height="18px" Width="70px" runat="server">
                                                                </asp:DropDownList>                                                            
                                                                <br />
                                                            </td>                                                            	
                                                        </tr>                                                        
                                                        <tr class="userchangeinfo">
                                                            <td>
                                                                <asp:Label ID="Label3" runat="server" Text="Hình đại diện"></asp:Label>
                                                            </td>
                                                            <td align="left">
                                                                <asp:FileUpload ID="FileUpload_avatar" Visible="false" runat="server" />
                                                                <asp:TextBox ID="txtavatar" ReadOnly="true" runat="server" Height="18px" Width="200px" MaxLength="200"></asp:TextBox>                                                                                                                                
                                                                <br />
                                                            </td>
                                                            <td>
                                                                <asp:LinkButton ID="lbtchangeavatar" OnClientClick="javascript:return confirmAction();" CausesValidation="false" runat="server" 
                                                                    Visible="false" Font-Bold="True" ForeColor="#0000CC" 
                                                                    onclick="lbtchangeavatar_Click">Thay Đổi Avatar</asp:LinkButton>
                                                            </td>
                                                        </tr>
                                                        <tr class="userchangeinfo">
                                                            <td>
                                                                <asp:Label ID="Label4" runat="server" Text="Email"></asp:Label>
                                                            </td>
                                                            <td align="left">
                                                                <asp:TextBox ID="txtemail" runat="server" Height="18px" Width="200px" MaxLength="100"></asp:TextBox>
                                                                <br />
                                                            </td>
                                                            <td>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                                                    ErrorMessage="?" ControlToValidate="txtemail">*</asp:RequiredFieldValidator>
                                                                <asp:RegularExpressionValidator ID="RegularExpressionValidator13" runat="server"
                                                                    ErrorMessage="Email không hợp lệ" ControlToValidate="txtemail" 
                                                                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>                                                                    
                                                            </td>
                                                        </tr>
                                                        <tr class="userchangeinfo">
                                                            <td>
                                                                <asp:Label ID="Label5" runat="server" Text="Nick Yahoo"></asp:Label>
                                                            </td>
                                                            <td align="left">
                                                                <asp:TextBox ID="txtyahoo" runat="server" Height="18px" Width="200px" MaxLength="50"></asp:TextBox>
                                                                <br />
                                                            </td>
                                                            <td>
                                                                <asp:RegularExpressionValidator ID="RegularExpressionValidator14" 
                                                                runat="server" ErrorMessage="Nick Yahoo không hợp lệ" ValidationExpression="\w+([_.]\w+)*" ControlToValidate="txtyahoo"></asp:RegularExpressionValidator>
                                                            </td>
                                                        </tr>
                                                        <tr class="userchangeinfo">
                                                            <td>
                                                                <asp:Label ID="Label6" runat="server" Text="Nick Skyper"></asp:Label>
                                                            </td>
                                                            <td align="left">
                                                                <asp:TextBox ID="txtskyper" runat="server" Height="18px" Width="200px" MaxLength="50"></asp:TextBox>
                                                                <br />
                                                            </td>
                                                            <td>
                                                                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" 
                                                                runat="server" ErrorMessage="Nick Yahoo không hợp lệ" ValidationExpression="\w+([_.]\w+)*" ControlToValidate="txtskyper"></asp:RegularExpressionValidator>
                                                            </td>
                                                        </tr>
                                                        <tr class="userchangeinfo">
                                                            <td>
                                                                <asp:Label ID="Label7" runat="server" Text="Điện thoại"></asp:Label>
                                                            </td>
                                                            <td align="left">
                                                                <asp:TextBox ID="txtmobie" runat="server" Height="18px" Width="200px" MaxLength="50"></asp:TextBox>
                                                                <br />
                                                            </td>
                                                            <td>
                                                                <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" 
                                                                ControlToValidate="txtmobie" ErrorMessage="Định dạng không đúng" 
                                                                ValidationExpression="^[\d]+\.?[\d]+$"></asp:RegularExpressionValidator>
                                                            </td>
                                                        </tr>
                                                        <tr class="userchangeinfo">
                                                            <td>
                                                                <asp:Label ID="Label9" runat="server" Text="Tỉnh/Thành phố"></asp:Label>
                                                            </td>
                                                            <td align="left">
                                                                <asp:DropDownList ID="cbcity" Height="18px" Width="204px" runat="server" DataTextField="Value" DataValueField="Key">
                                                                    <asp:ListItem Value="Hà Nội">Hà Nội</asp:ListItem>
                                                                    <asp:ListItem Value="TP HCM">TP HCM</asp:ListItem>
                                                                    <asp:ListItem Value="An Giang">An Giang</asp:ListItem>
                                                                    <asp:ListItem Value="Bắc Cạn">Bắc Cạn</asp:ListItem>
                                                                    <asp:ListItem Value="Bắc Giang">Bắc Giang</asp:ListItem>
                                                                    <asp:ListItem Value="Bạc Liêu">Bạc Liêu</asp:ListItem>
                                                                    <asp:ListItem Value="Bắc Ninh">Bắc Ninh</asp:ListItem>
                                                                    <asp:ListItem Value="Bến Tre">Bến Tre</asp:ListItem>
                                                                    <asp:ListItem Value="Bình Định">Bình Định</asp:ListItem>
                                                                    <asp:ListItem Value="Bình Dương">Bình Dương</asp:ListItem>
                                                                    <asp:ListItem Value="Bình Phước">Bình Phước</asp:ListItem>
                                                                    <asp:ListItem Value="Bình Thuận">Bình Thuận</asp:ListItem>
                                                                    <asp:ListItem Value="BR. Vũng Tàu">BR. Vũng Tàu</asp:ListItem>
                                                                    <asp:ListItem Value="Cà Mau">Cà Mau</asp:ListItem>
                                                                    <asp:ListItem>Cần Thơ</asp:ListItem>
                                                                    <asp:ListItem>Cao Bằng</asp:ListItem>
                                                                    <asp:ListItem>Đà Nẵng</asp:ListItem>
                                                                    <asp:ListItem>Đắc Lắc</asp:ListItem>
                                                                    <asp:ListItem>Đồng Nai</asp:ListItem>
                                                                    <asp:ListItem>Đồng Tháp</asp:ListItem>
                                                                    <asp:ListItem>Gia Lai</asp:ListItem>
                                                                    <asp:ListItem>Hà Giang</asp:ListItem>
                                                                    <asp:ListItem>Hà Nam</asp:ListItem>
                                                                    <asp:ListItem>Hà Tỉnh</asp:ListItem>
                                                                    <asp:ListItem>Hải Dương</asp:ListItem>
                                                                    <asp:ListItem>Hải Phòng</asp:ListItem>
                                                                    <asp:ListItem>Hòa Bình</asp:ListItem>
                                                                    <asp:ListItem>Huế</asp:ListItem>
                                                                    <asp:ListItem>Hưng Yên</asp:ListItem>
                                                                    <asp:ListItem>Khánh Hòa</asp:ListItem>
                                                                    <asp:ListItem>Kiên Giang</asp:ListItem>
                                                                    <asp:ListItem>Kon Tum</asp:ListItem>
                                                                    <asp:ListItem>Lai Châu</asp:ListItem>
                                                                    <asp:ListItem>Lâm Đồng</asp:ListItem>
                                                                    <asp:ListItem>Lạng Sơn</asp:ListItem>
                                                                    <asp:ListItem>Lào Cai</asp:ListItem>
                                                                    <asp:ListItem>Long An</asp:ListItem>
                                                                    <asp:ListItem>Nam Định</asp:ListItem>
                                                                    <asp:ListItem>Nghệ An</asp:ListItem>
                                                                    <asp:ListItem>Ninh Bình</asp:ListItem>
                                                                    <asp:ListItem>Ninh Thuận</asp:ListItem>
                                                                    <asp:ListItem>Phú Thọ</asp:ListItem>
                                                                    <asp:ListItem>Phú Yên</asp:ListItem>
                                                                    <asp:ListItem>Quảng Bình</asp:ListItem>
                                                                    <asp:ListItem>Quảng Nam</asp:ListItem>
                                                                    <asp:ListItem>Quảng Ngãi</asp:ListItem>
                                                                    <asp:ListItem>Quảng Ninh</asp:ListItem>
                                                                    <asp:ListItem>Quảng Trị</asp:ListItem>
                                                                    <asp:ListItem>Sóc Trăng</asp:ListItem>
                                                                    <asp:ListItem>Sơn La</asp:ListItem>
                                                                    <asp:ListItem>Tây Ninh</asp:ListItem>
                                                                    <asp:ListItem>Thái Bình</asp:ListItem>
                                                                    <asp:ListItem>Thái Nguyên</asp:ListItem>
                                                                    <asp:ListItem>Thanh Hóa</asp:ListItem>
                                                                    <asp:ListItem>Tiền Giang</asp:ListItem>
                                                                    <asp:ListItem>Trà Vinh</asp:ListItem>
                                                                    <asp:ListItem>Tuyên Quang</asp:ListItem>
                                                                    <asp:ListItem>Vỉnh Long</asp:ListItem>
                                                                    <asp:ListItem>Vỉnh Phúc</asp:ListItem>
                                                                    <asp:ListItem>Yên Bái</asp:ListItem>
                                                                </asp:DropDownList>
                                                                <br />
                                                            </td>
                                                        </tr>
                                                        <tr class="userchangeinfo">
                                                            <td>
                                                                <asp:Label ID="Label8" runat="server" Text="Địa chỉ"></asp:Label>
                                                            </td>
                                                            <td align="left">
                                                                <asp:TextBox ID="txtaddress" runat="server" Height="18px" Width="200px" MaxLength="100"></asp:TextBox>
                                                                <br />
                                                            </td>
                                                       
                                                        </tr>
                                                        <tr class="userchangeinfo">
                                                            <td>
                                                                <asp:Label ID="Label10" runat="server" Text="Tên Website"></asp:Label>
                                                            </td>
                                                            <td align="left">
                                                                <asp:TextBox ID="txtwebsite" Text="http://" runat="server" Height="18px" Width="200px" MaxLength="100"></asp:TextBox>
                                                                <br />
                                                            </td>
                                                        </tr>
                                                        <tr class="userchangeinfo">
                                                            <td>
                                                                <asp:Label ID="Label11" runat="server" Text="Câu hỏi lấy lại mật khẩu"></asp:Label>
                                                            </td>
                                                            <td align="left">
                                                                <asp:DropDownList ID="dlquestion" Height="18px" Width="204px" runat="server" DataTextField="Value" DataValueField="Key">
                                                                </asp:DropDownList>
                                                                <br />
                                                            </td>
                                                        </tr>
                                                        <tr class="userchangeinfo">
                                                            <td>
                                                                <asp:Label ID="Label12" runat="server" Text="Trả lời"></asp:Label>
                                                            </td>
                                                            <td align="left">
                                                                <asp:TextBox ID="txtanswer" Text="" runat="server" Height="18px" Width="200px" MaxLength="200"></asp:TextBox>
                                                                <br />
                                                            </td>
                                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                                                    ControlToValidate="txtanswer" ErrorMessage="?">*</asp:RequiredFieldValidator>
                                                        </tr>
                                                    </table>
				    	                     </div> 
				    	                </div>
				    	             <div style="margin-top: 4px;">
				    	                <asp:Button ID="btnluu" class="button_update" runat="server" Text="Lưu" 
                                             onclick="btnluu_Click" />
                                        <asp:Button ID="btnhuy" class="button_cancel" CausesValidation="false" 
                                             runat="server" Text="Hủy bỏ" onclick="btnhuy_Click" />
				    	             </div>
				    	         </td>
				    	     </tr> 
				    	   </tbody>                                                               
				    	</table>
					    	  
				    </div>
			    </div>
                <Right:UserRight ID="UserRight" runat="server" />		
		    </div>
	    </div>	
	    <MenuFooter:MenuDuoi ID="MenuFooter" runat="server" />
    </div>
    </form>
</body>
</html>
